package com.umeox.watch.moto.agora;


import com.umeox.watch.moto.dataservice.constants.Constants;

public class InternalConstants {
    public static final String ACTION_INCOMING_VIDEO_CALL = Constants.APPLICATION_ACTION + ".INCOMING_VIDEO_CALL";
    public static final String ACTION_OUTGOING_VIDEO_CALL = Constants.APPLICATION_ACTION + ".OUTGOING_VIDEO_CALL";
    public static final String ACTION_PTT_CALL = Constants.APPLICATION_ACTION + ".PTT_CALL";

    public static final String CALL_TYPE_VIDEO = "/video";
    public static final String CALL_TYPE_VOICE = "/voice";
    public static final String CALL_TYPE_PTT_IN = "/ptt_in";
    public static final String CALL_TYPE_PTT_OUT = "/ptt_out";
    public static final String INCOMING_VIDEO_CALL = "rtc://incoming" + CALL_TYPE_VIDEO;
    public static final String INCOMING_VOICE_CALL = "rtc://incoming" + CALL_TYPE_VOICE;
    public static final String INCOMING_PTT_CALL = "rtc://incoming" + CALL_TYPE_PTT_IN;
    public static final String OUTGOING_VIDEO_CALL = "rtc://outgoing" + CALL_TYPE_VIDEO;
    public static final String OUTGOING_VOICE_CALL = "rtc://outgoing" + CALL_TYPE_VOICE;
    public static final String OUTGOING_PTT_CALL = "rtc://outgoing" + CALL_TYPE_PTT_OUT;
    public static final String CALL_QUERY_PARA_FOLLOWER_ID = "friendId";
    public static final String CALL_QUERY_PARA_CHANNEL = "channel";

    public enum CallType {
        /**
         * 视频来电.
         */
        INCOMING_VIDEO_CALL(0),
        /**
         * 语音来电.
         */
        INCOMING_VOIP_CALL(1),
        /**
         * 视频去电
         */
        OUTGOING_VIDEO_CALL(2),
        /**
         * 语音去电
         */
        OUTGOING_VOIP_CALL(3),
        /**
         * 未接视频来电
         */
        VIDEO_MISSED_TYPE(4),
        /**
         * 未接视频来电
         */
        VOIP_MISSED_TYPE(5);

        private final int value;

        CallType(int value) {
            this.value = value;
        }

        public final int getType() {
            return value;
        }
    }
}
